package com.tjshop.android;

import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.FragmentActivity;
import android.widget.Toast;

import com.tjshop.android.fragment.FragmentCatagory;
import com.tjshop.android.fragment.FragmentGoodsList;
import com.tjshop.android.model.CouponDetail;
import com.tjshop.android.model.cityArea;
import com.tjshop.android.model.keyPair;
import com.tjshop.android.util.HttpUtil;
import com.tjshop.android.util.MD5Utils;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;

/**
 * Home的分类跳转过来的详细界面。
 * 
 * @author Ke Shang
 * @since 2014-12-30
 */
public class GoodsListActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setTheme(R.style.Theme_Sherlock);

		String id = getIntent().getExtras().getString("gId");
		String title = getIntent().getExtras().getString("name");
		updateCommonReturnBar(title);
		if (savedInstanceState == null) {
			FragmentGoodsList f = new FragmentGoodsList();
			f.setArguments(getIntent().getExtras());
			getSupportFragmentManager().beginTransaction()
					.replace(android.R.id.content, f).commit();
		}

	}

	@Override
	public boolean handleMessage(Message arg0) {
		return false;
	}

}
